<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>Cheque Issue</title>
		<link rel="stylesheet" href="../../css/styles.css" type="text/css" />
	</head>
	<script type="text/javascript">
	  
	  function showEnterForm(){
	      document.getElementById("enterDiv").style.display = "block";
	      document.getElementById("viewDiv").style.display = "none";
	  }
	  
	  function showSearchForm(){
	      document.getElementById("enterDiv").style.display = "none";
	      document.getElementById("viewDiv").style.display = "block";
	  }
	</script>
<body>
	<div id="container">
		<jsp:include page="/jsp/menu.jsp" />
                <div style="height:420px;">
			  		<div class="path">
						<br><a href="home.htm"> Home </a>-&gt;
						<a> Account </a>-&gt;
						<a>Bank Account </a>-&gt;
						<a href="chequeIssue.htm">Cheque Issue </a>
			  		</div>
			  		<div id="leftDiv" style="margin-left: 10px;margin-top: 20px">
			   			<b>Cheque Issue </b><br><br>
						<fieldset style="height:80px; width:200px;background: #FFF;">
						<table cellpadding=20>
						<tr>
							<td>
								<a href="javascript:showSearchForm()">
			                        	View Cheque Issue 
								</a>
							</td>
						</tr>
						<tr>
							<td>
			                 	<a href="javascript:showEnterForm()">
			                        	Enter Cheque Issue 
			                 	</a>
							</td>
						</tr>
						</table>
						</fieldset>
			  		</div>
				</div>
                 <div id="viewDiv" class="maininfo" style="display: none">
                	<div class="lable">
						Cheque Issue
					 </div>
					<table cellpadding="10">
						<tr>
							<th> Cheque No. </th>
							<th> Name of Bank</th>
							<th> Party </th>
							<th> Date Issue </th>
							<th> Debit Date </th>
							<th> Amount </th>
						</tr>
						<tr>
							<td>123</td>
							<td>State Bank of India </td>
							<td>IBM</td>
							<td>12/10/2010</td>
							<td>25/10/2010</td>
							<td>50000</td>
						</tr>
						<tr>
							<td> </td>
							<td> </td>
							<td> </td>
							<td> </td>
							<td> </td>
							<td> </td>
						</tr>
					</table>
				</div>
				<form:form method="POST" action="saveChequeIssue.htm" commandName="chequeIssue">
				 <div id="enterDiv" class="maininfo" style="display: none">
				 <div class="lable">
						Cheque Issue
					 </div>
						<div id="infoDiv" style="margin-top: 10px;">
							<table>
								<tr>
									<th> Cheque No. </th>
									<td><form:input path="chequeIssueChequeNo" /></td>
								</tr>
								<tr>
									<th> Name of Bank</th>
									<td><form:input path="chequeIssueBankName" /></td>
								</tr>
								<tr>
									<th> Party </th>
									<td><form:input path="chequeIssuePartyName" /></td>
								</tr>
								<tr>
									<th> Date Issue </th>
									<td><form:input path="chequeIssuetDate" /></td>
								</tr>
								<tr>
									<th> Debit Date </th>
									<td><form:input path="chequeIssueDebitDate" /></td>
								</tr>
								<tr>
									<th> Amount </th>
									<td><form:input path="chequeIssueAmount" /></td>
								</tr>
								<tr>	
									<th></th>
									<td><input type=submit name="submit"  value="Submit"></td>
								</tr>
							</table>
						</div>
					</div>
			</form:form>
		<div id="footer">
			<jsp:include page="/jsp/footer.jsp" />
		</div>
	</div>
</body>
</html>